﻿using System.Collections.Generic;
using System.Xml.Serialization;

namespace OpenWaves.Video.Vimeo
{
    public class VimeoVideo : IVideo
    {
        [XmlElement(ElementName = "id")]
        public string Id { get; set; }

        public IEnumerable<IVideoThumbnail> Thumbnails
        {
            get 
            { 
                return new[] 
                {
                    new VimeoThumbnail {Width = 100, Height = 75, Url = SmallThumbnailUrl},
                    new VimeoThumbnail {Width = 200, Height = 150, Url = MediumThumbnailUrl},
                    new VimeoThumbnail {Width = 640, Height = 360, Url = LargeThumbnailUrl}
                };
            }
        }

        [XmlElement(ElementName = "title")]
        public string Title { get; set; }

        [XmlElement(ElementName = "thumbnail_small")]
        public string SmallThumbnailUrl { get; set; }

        [XmlElement(ElementName = "thumbnail_medium")]
        public string MediumThumbnailUrl { get; set; }

        [XmlElement(ElementName = "thumbnail_large")]
        public string LargeThumbnailUrl { get; set; }
    }
}